import request from '@/utils/request'
//告警列表
export const getAlarmList = (params) => {
  return request({
    url: 'alarmList/list',
    method: 'GET',
    params,
  })
}

//处理：是否误报
export const handleAlarm = (data) => {
  return request({
    url: 'alarmList/handleUpdate',
    method: 'PUT',
    data,
  })
}

/**
 * 详情查询 详情查询
 * @ss.hasPermi('alarmList:detail')
 */
export const alarmRuleDetail = (id) => {
  return request({
    url: `alarmList/queryById/${id}`,
    method: 'GET',
  })
}
